class Rectangle:
    def __init__(self,width=1,height=2):
        self.__width = width
        self.__height = height
    def getWidth(self):
        return self.__width

    def getHeight(self):
        return self.__height

    def getArea(self):
        return self.__width*self.__height

    def getPerimeter(self):
        return (self.__width*2 + self.__height*2)


def main():
    rect1 = Rectangle(4,40)
    rect2 = Rectangle(3.5,35.7)

    print("rect1 width=",rect1.getWidth(),",height=",rect1.getHeight(),",area=",round(rect1.getArea(),3),",perimeter=",rect1.getPerimeter())
    print("rect2 width=",rect2.getWidth(),",height=",rect2.getHeight(),",area=",round(rect2.getArea(),3),",perimeter=",rect2.getPerimeter())

main()
